package com.mkyong.common.controller;

import com.mkyong.common.controller.*;
import com.mkyong.common.dto.EnvioClienteDTO;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/cliente")
public class ClienteController {

//	@RequestMapping(method = RequestMethod.GET)
//	public String printWelcome(ModelMap model) {
//
////		model.addAttribute("message", "Spring 3 MVC Hello World");
//		return "indexCliente";
//
//	}
    
	@RequestMapping(method = RequestMethod.GET)
	public ModelAndView printWelcome() {
            
            ModelAndView mv = new ModelAndView("indexCliente");

            EnvioClienteDTO envioClienteDTO = new EnvioClienteDTO();
            
            mv.addObject("envioClienteDTO", envioClienteDTO);            

            return mv;

	}    
	
}